<extend name="Bt/register_back_base"/>
<block name="content">
    <div class="context" style="position: relative;height:900px">
        <div class="ctPdding ">
            <div class="ct_header"><i></i>找回密码</div>
            <hr />
            <div class="regContainer">
                <div class="regItme">
                    <ul>
                        <li>
                            <span class="noRegLogo">1</span>
                            <span class="color6">填写注册邮箱</span>
                        </li>
                        <li class="itmeTwo">
                            <span class="noRegLogo">2</span>
                            <span class="color6">激活账户</span>
                        </li>
                        <li class="itmeBorder">
                            <span class="regLogo">3</span>
                            <span class="color6">设置新密码</span>
                        </li>
                    </ul>
                </div>
                <div class="clearfix"></div>
            </div>
            <form class="login-form" id="J_findpwd_form" action="{:U('member/doReset')}" method="post">
                <input type="hidden" id="inputname" class="form-control" placeholder="UID"
                       errormsg="UID" nullmsg="UID" datatype="*1-5" name="uid" value="{$_REQUEST.uid|intval}">
                <div class="regGroupContainer">
                    <div class="userContainer marginTop50 marginBottom20">
                        <input type="password" id="inputPassword" class="userStyle" placeholder="{:L('_ERROR_INPUT_NEW_PASSWORD_')}"
                               errormsg="{:L('_PW_ERROR_')}" nullmsg="{:L('_PW_INPUT_ERROR_')}" datatype="*6-20"  name="password">
                        <img class="userMsg" src="__IMG__/bt/err_small_a1085c53.png" style="display: none"/>
                        <span class="size12 colorRed" style="display: none"></span>
                        <div class="userLogo"><img src="__IMG__/bt/user/userlogo.png"/></div>
                    </div>
                    <div class="userContainer marginBottom20">
                        <input type="password" id="repassword" class="userStyle" placeholder="{:L('_PW_RE_INPUT_PLACEHOLDER_')}"
                               errormsg="{:L('_PW_ERROR_')}" nullmsg="{:L('_PW_INPUT_ERROR_')}" datatype="*6-20" name="repassword">
                        <img class="userMsg" src="__IMG__/bt/err_small_a1085c53.png" style="display: none"/>
                        <span class="size12 colorRed" style="display: none"></span>
                        <div class="userLogo"><img src="__IMG__/bt/user/userlogo.png"/></div>
                    </div>

                    <div class="userContainer marginBottom20">
                        <div class="userLogoBtn stratHover">下一步</div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</block>
<block name="javascriptPageLeveCode">
    <script type="text/javascript">
        $(function () {
            $('.userLogoBtn').on('click',function(){

                $('.userMsg').hide();

                $('.colorRed').hide();

                var self = $("form");

                $.post(self.attr("action"), self.serialize(), success, "json");
                return false;

                function success(data) {
                    if (data.status) {
                        window.location.href = data.url
                    } else {
                        $('#inputPassword').nextAll('.userMsg').show();
                        $('#inputPassword').nextAll('.colorRed').text(data.info).show();
                    }
                }
            });
        });
    </script>
</block>
